<template>
  <div>
    上传功能

    <Upload multiple action="//jsonplaceholder.typicode.com/posts/" :before-upload="handleBeforeUpload">
      <Button icon="ios-cloud-upload-outline">Upload files</Button>
    </Upload>
  </div>
</template>

<script>
import axios from 'axios'
export default {
  components: {},
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  methods: {
    handleBeforeUpload(file) {
      console.log('file', file)
      return true
    },
  },
  created() {
    // axios.get(`https://timor.tech/api/holiday/year/2024`).then(response => {
    //   console.log('response', response)
    // })
  },
  mounted() {},
  beforeCreate() {},
  beforeMount() {},
  beforeUpdate() {},
  updated() {},
  beforeDestroy() {},
  destroyed() {},
  activated() {},
}
</script>
<style scoped></style>
